package cn.gson.boot.model.mapper;

import cn.gson.boot.model.pojos.Category;
import cn.gson.boot.model.pojos.CategoryType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
@Mapper
public interface CategoryMapper {

    //无限级查询
    public List<CategoryType> selectAllCategory(@Param("parentId") Long categoryIdt);

    //修改类别时查询上级类别
    Category selectCategoryIdt(Integer categoryId);

    List<Category> selectCategoryt(Integer categoryId);
}
